#ifndef _ASSIGNNODE_H_
#define _ASSIGNNODE_H_

#include "StatNode.h"
#include "VarNode.h"

class AssignNode : public StatNode {
protected:
    VarNode *id;
    ExprNode *value;
public:
    AssignNode(VarNode *id, Token *token, ExprNode *value):
        StatNode(token), id(id), value(value) { }
    void print() {
        id->print();
        cout << "=";
        value->print();
        cout << endl;
    }
};

#endif
